package main

import "fmt"

type A struct {
	Name string
}

type B struct {
	Name string
}

type C struct {
	A
	B
}

func main() {
	c := C{}
	c.Name = "jack" // ambiguous selector c.Name A B 结构体都包含Name
	fmt.Println(c.Name)
}
